package cn.ztr.familyalbum.mapper;

import cn.ztr.familyalbum.common.CommonResult;
import cn.ztr.familyalbum.dto.GrowthAlbumTemplateDto;
import cn.ztr.familyalbum.entity.GrowthAlbumTemplate;
import cn.ztr.familyalbum.vo.TemplateDictionaryVo;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2020-05-29
 */
@Mapper
public interface GrowthAlbumTemplateMapper extends BaseMapper<GrowthAlbumTemplate> {
    /**
     * 模板列表查询dao接口
     * @param template
     * @return
     */
    List<TemplateDictionaryVo> queryTemplateList(GrowthAlbumTemplateDto template);

    /**
     * 模板审核点击回显
     * @param id
     * @return
     */
    TemplateDictionaryVo auditTemplate(@Param("id")Integer id);

    /**
     * 审核确定
     * @param id
     * @param state
     * @return
     */
    int completeAudit(@Param("id")Integer id, @Param("state")Integer state);
}
